package main

import (
	"fmt"
	"time"
)

func main() {
	ch := make(chan string)
	go send(ch)
	go receive(ch)

	time.Sleep(1e8)
}

func send(ch chan<- string) {
	//sync.Locker().Lock()
	for true {
		ch <- "hello\n"
	}
}

func receive(ch <-chan string) {
	for true {
		fmt.Print(<-ch)
	}
}
